#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef double db;

#define in read()
#define pii pair<int,int>
#define fi first
#define se second
#define FILE(x) freopen(x".in","r",stdin);\
	freopen(x".out","w",stdout);
#define pb push_back

int read(){
	int x = 0,sgn = 1;char ch = getchar();
	for(;!isdigit(ch);ch = getchar()) if(ch == '-') sgn = -1;
	for(;isdigit(ch);ch = getchar()) x = (x<<1)+(x<<3)+(ch^48);
	return x*sgn;
}

const int mod = 998244353;

int n,m,k;
ll ans;

ll qp(ll x,int t){ll res=1;for(;t;t>>=1,x=x*x%mod)if(t&1)res=res*x%mod;return res;}

int main (){
#ifndef ONLINE_JUDGE
	freopen("1.in","r",stdin);
#endif
	n = in,m = in,k = in; if(n == 1 && m == 1) return printf("%d\n",k),0;
	if(n == 1 || m == 1) return printf("%d\n",qp(k,n+m-1) % mod),0;
	for(int i = 1;i <= k;i++){
		ans = (ans + (qp(i,n) - qp(i-1,n)) % mod * qp(k-i+1,m) % mod) % mod;
	}
	printf("%lld\n",(ans+mod)%mod);
	return 0;
}

